package music_store.ms.service;

import com.github.pagehelper.PageInfo;
import music_store.ms.common.ServerResponse;
import music_store.ms.pojo.User;

import javax.servlet.http.HttpSession;

public interface IUserService {


    ServerResponse<User> login(String username, String password);

    ServerResponse<String> register(User user);

    ServerResponse<String> selectQuestionByUsername(String username);

    ServerResponse<String> forgetCheckAnswer(String username,String question,String answer);

    ServerResponse<String> forgetResetPassword(String username,String passwordNew,String forgetToken);

    ServerResponse<String> resetPassword(User user,String passwordOld,String passwordNew);

    ServerResponse<User> update_info(User user);

    ServerResponse<User> get_info(int userId);

    ServerResponse<PageInfo> listUser(int pageNum, int pageSize);


}
